package com.bjpowernode.appio;

import java.io.*;

public class MyApp5 {


    public static void main(String[] args) {
        String temp = "";
        String path = "d:\\aa.txt";
        try {
            FileReader fileReader = new FileReader(path);
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            String aa = "";
            StringBuffer stringBuffer=new StringBuffer();
            while ((aa = bufferedReader.readLine()) != null) {
                stringBuffer.append(aa);
                stringBuffer.append("\n");
            }

            temp=stringBuffer.toString();
            bufferedReader.close();
            fileReader.close();

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(temp);

    }

}
